export enum casCode {
  TOKEN_NULL = 410,
  TOKEN_INVALID = 411,
  NO_AUTH = 412,
  LOGIN_FAIL = 413,
  NOT_GET_LOGIN_USER = 414,
  SA_TOKEN_EXCEPTION = 415,
  USER_LOCKED = 416,
  CAPTCHA_EXPIRED = 426,
  CAPTCHA_INVALID = 427,
}

export const errorCodeDesc = {
  [casCode.TOKEN_NULL]: "身份令牌缺失",
  [casCode.TOKEN_INVALID]: "身份令牌无效",
  [casCode.NO_AUTH]: "没有权限访问",
  [casCode.LOGIN_FAIL]: "登录失败",
  [casCode.NOT_GET_LOGIN_USER]: "未获取到登录用户信息",
  [casCode.SA_TOKEN_EXCEPTION]: "身份令牌异常",
  [casCode.USER_LOCKED]: "用户已被锁定",
  [casCode.CAPTCHA_EXPIRED]: "验证码过期",
  [casCode.CAPTCHA_INVALID]: "验证码错误",
};

export const loginOutCode = [410, 411];
